{if count($smarty.session.errors) > 0}
<!-- Begin errors.tpl -->
	{foreach from=$smarty.session.errors key=key item=errors}
	<div class="error">{$errors}</div>
	{/foreach}
<!-- End errors.tpl -->
{/if}
{* Initialisation du tableau des erreurs *}
{php}
$_SESSION['errors'] = array();
{/php}